import { ref } from 'vue'
import { defineStore } from 'pinia'

export const includesStore = defineStore(
  'includesStore',
  () => {
    const includes = ref([])
    const setIncludes = (arr) => {
      includes.value = arr
    }

    const clearIncludes = () => {
      includes.value = []
    }
    return {
      includes,
      setIncludes,
      clearIncludes
    }
  },
  //持久化存储
  { persist: true }
)
